package com.xt.dao;

import com.xt.bean.Department;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * Created by XT on 2018/5/3.
 */
public interface DepartmentRepository extends MongoRepository<Department,String> {

    Page<Department> findByNameLike(String name, Pageable pageable);

}
